import { ISkillAddItem, ISkillListQuery ,DefeneState} from '@/utils/interface';
import { request } from 'umi';

//获取专业列表
export let getSkillLabel=()=>{
    return request("/sxpt/station/selectStationLabel")
}


//获取选中的岗位列表
export let getSkillList=(params:ISkillListQuery)=>{
    return request("/sxpt/station/selectStationVersionList",{params})
}

//获取选中的岗位列表2
export let getSkillLists=(params:ISkillListQuery)=>{
    return request("/sypt/interview/interviewList",{params})
} 

//获取选中的项目列表
export let getproManagement=(params:ISkillListQuery)=>{
    return request("/sxpt/label/selectMajorStationList",{params})
}
//获取选中的项目列表
export let getLabellist=(params:ISkillListQuery)=>{
    return request("/sxpt/label/selectTradeList",{params})
}

//获取选中的项目表单
export let getProjectList=(params:ISkillListQuery)=>{
    return request("/sxpt/project/selectProjectList",{params})
}


// 孔心语的学生端岗位
export let gethighPost=(params:ISkillListQuery)=>{
    return request("/sypt/station/selectStationNewVersionList",{params})
}



// 添加岗位
export let addPostSkill = (data: ISkillAddItem) => {
    return request('/sxpt/station', { 
        method: 'POST',
        data 
     })
}

// 获取岗位详情
export let getSkillDetail = (stationVersionId: string)=>{
    return request(`/sxpt/station/selectStationListById/${stationVersionId}`)
}

//获取答辩列表
export let getDefenceList=(params:DefeneState)=>{
    return request("/sxpt/defence/getDefenceList",{params})
}
